package presenters;

import android.app.Activity;
import android.view.View;
import views.IListView;

/**
 * this is m6 stuff so we don't know what it does yet, sorry bro
 * 
 * @author Miles Raphael
 */
public class MainListPresenter {

	/** View of MainList */
	private final IListView myView;

	/** Activity in use */
	private final Activity activity;

	/**
	 * Creates MainListPresenter
	 * 
	 * @view - the view used
	 * @param view
	 *            the view of the MainList
	 */
	public MainListPresenter(IListView view) {
		this.myView = view;
		this.activity = (Activity) view;
	}

	/**
	 * When filter is clicked
	 * 
	 * @param source
	 *            - the source used
	 */
	public void onFilterClick(View source) {
		myView.advance(source);
	}

	/**
	 * When submit is clicked
	 * 
	 * @param source
	 *            - the source used
	 */
	public void onSubmitClick(View source) {
		myView.advance(source);
	}

	/**
	 * When refresh is clicked
	 * 
	 * @param source
	 *            - the source used
	 */
	public void onRefreshClick(View source) {

	}

	public Activity getActivity() {
		return activity;
	}

}